package com.eaia.controller;

import com.eaia.model.TbContent;
import com.eaia.service.TbContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: hezhiqin
 * @time: 2020/6/3 12:30
 */

@RestController
public class TbContentController {

    @Autowired
    TbContentService tbContentService;


    @RequestMapping(value = "/contents",method = RequestMethod.POST)
    public List contents(){
        List<TbContent> list = tbContentService.contents();
        return list;
    }
}
